import { apiClient } from '../index';

export const getOverview = async (params: {
    days: number;
}) => {
  try {
    const response = await apiClient.post('/dashboard/overview', params);
    return response;
  } catch (error) {
    console.error('获取首页概览失败:', error);
    throw error;
  }
};